Make testcellarea handle RTL environment variable for testing
authorKristian Rietveld <kris@gtk.org>
Wed, 15 Dec 2010 20:22:35 +0000 (21:22 +0100)
committerKristian Rietveld <kris@gtk.org>
Wed, 15 Dec 2010 20:22:35 +0000 (21:22 +0100)
tests/testcellarea.c

index 029f507cb74e298353907821dc052805f1ca0d86..ec9398d6f265ceb8b5e655b79f7e362b53482d2d 100644 (file)
@@ -614,6 +614,9 @@ main (int argc, char *argv[])
 {
   gtk_init (NULL, NULL);
 
+  if (g_getenv ("RTL"))
+    gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
+
   simple_cell_area ();
   focus_cell_area ();
   background_area ();